/**
 * 权限功能基本信息div
 */

function permissionInfoDiv(parentId,permissionName,json){
	var tag ='';
	var permissionNm ='',permissionId='',permissionOrder ='',permissionUrl ='',permissionExt1 ='',permissionAction ='',permissionDesc='',permissionAclId='';
	var radioTag = '<div class="md-radio">'+
						'<input type="radio" name="permissionLeaf" id="permissionNoLeaf" class="md-radiobtn" value="1">'+
						' 是 '+
						'<input type="radio" name="permissionLeaf" id="permissionLeaf" class="md-radiobtn" value="0" checked>'+
						' 否 '+
					'</div>';
	if(json != null){
		permissionId = (json.permissionId == null)?'':json.permissionId;
		permissionNm = (json.permissionName == null)?'':json.permissionName;
		permissionOrder = (json.permissionOrder == null)?'':json.permissionOrder;
		permissionUrl = (json.permissionUrl == null)?'':json.permissionUrl;
		permissionExt1 = (json.permissionExt1 == null)?'':json.permissionExt1;
		permissionAction = (json.permissionAction == null)?'':json.permissionAction;
		permissionDesc = (json.permissionDesc == null)?'':json.permissionDesc;
		permissionAclId=(json.permissionAclId==null)?'':json.permissionAclId;
		tag=(json.tag==null)?'':json.tag;
		if(json.permissionLeaf==1){
			radioTag = '<div class="controls">'+
						'<input type="radio" name="permissionLeaf" id="permissionNoLeaf" class="md-radiobtn" value="1" checked>'+
						'是 '+
							'<input type="radio" name="permissionLeaf" id="permissionLeaf" class="md-radiobtn" value="0" >'+
							'否 '+
						'</div>';
		}
	}
	var permissionUptInfoDiv = '<div class="form"><div class="form"><form class="form-horizontal" id="permissionInfoForm" method="post">'+
		   '<div class="control-group">'+
			    '<input type="hidden" id="permissionParentId" name="permissionParentId" value="'+parentId+'">'+
			    '<input type="hidden" id="permissionId" name="permissionId" value="'+permissionId+'">'+
				'<label  class="control-label" for="form_control_1">父节点</label>'+
				'<div class="controls">'+
					'<input id="permissionParentName" name="permissionParentName" value="'+permissionName+'" disabled class="span3 m-wrap"/>'+
				'</div>'+
			'</div>'+
			'<div class="control-group">'+
			    '<input type="hidden" id="roleId" name="roleId" value="">'+
				'<label  class="control-label" for="form_control_1">节点名称</label>'+
				'<div class="controls">'+
					'<input id="permissionName" name="permissionName" placeholder="请填写节点名称，不能超过10个字符！" value="'+permissionNm+'" class="span3 m-wrap"/>'+
				'</div>'+
			'</div>'+
			'<div class="control-group">'+
			    '<input type="hidden" id="roleId" name="roleId" value="">'+
				'<label  class="control-label" for="form_control_1">节点类型</label>'+
				'<div class="controls">'+
					'<select id="permissionType" name="permissionType" class="span3 m-wrap">'+
						'<option value="1">导航节点</option>'+
						'<option value="2">功能节点</option>'+
					'</select>'+
				'</div>'+
			'</div>'+
			'<div class="control-group">'+
				'<label  class="control-label" for="form_control_1">节点排序</label>'+
				'<div class="controls">'+
					'<input id="permissionOrder" name="permissionOrder" placeholder="请填写数值！" value="'+permissionOrder+'" class="span3 m-wrap"/>'+
				'</div>'+
			'</div>'+
			'<div class="control-group" id="ljdxDiv">'+
				'<label  class="control-label" for="form_control_1">链接地址</label>'+
				'<div class="controls">'+
					'<input id="permissionUrl" name="permissionUrl" placeholder="请填写节点对应的链接地址！" value="'+permissionUrl+'" class="span3 m-wrap checkPost"/>'+
				'</div>'+
			'</div>'+
			'<div class="control-group" id="permissionExtDiv">'+
				'<label  class="control-label" for="form_control_1" ><span id="permissionExtSpan">菜单编号</span></label>'+
				'<div class="controls">'+
					'<input id="permissionExt1" name="permissionExt1" placeholder="请填写菜单编号！" value="'+permissionExt1+'" class="span3 m-wrap"/>'+
				'</div>'+
			'</div>'+
			/*'<div class="control-group" id="permissionAclIdDiv" style="display:none;">'+
				'<label  class="control-label" for="form_control_1">功能标识</label>'+
				'<div class="controls">'+
					'<input id="permissionAclId" name="permissionAclId" placeholder="请填写功能标识！" value="'+permissionAclId+'" class="span3 m-wrap"/>'+
				'</div>'+
			'</div>'+*/
			'<div class="control-group" id="cdtpDiv">'+
				'<label  class="control-label" for="form_control_1">菜单图标</label>'+
				'<div class="controls">'+
					'<input id="permissionAction" name="permissionAction" placeholder="请填写菜单图标！" value="'+permissionAction+'" class="span3 m-wrap"/>'+
				'</div>'+
			'</div>'+
			'<div class="control-group" id="cdtpDiv">'+
			'<label  class="control-label" for="form_control_1">菜单所属项目标记</label>'+
			'<div class="controls">'+
				'<input id="tag" name="tag" placeholder="请填写菜单所属项目标记！" value="'+tag+'" class="span3 m-wrap"/>'+
			'</div>'+
		'</div>'+
		
			'<div class="control-group">'+
				'<label  class="control-label" for="form_control_1">叶子节点</label>'+
				'<div class="controls">'+
				    '<div class="md-radio-inline">'+
				         radioTag+
				    '</div>'+
				'</div>'+
			'</div>'+
			'<div class="control-group">'+
			     '<label class="control-label" for="form_control_1">菜单简介</label>'+
			     '<div class="controls">'+
			     '<textarea class="span3 m-wrap" id="permissionDesc" name="permissionDesc" rows="3" placeholder="请简单填写菜单介绍，不得超过50个字符！">'+permissionDesc+'</textarea>'+
			     
			'</form></div></div>';
	return permissionUptInfoDiv;
}
